/* 学习进度追踪页面样式 */
.learning-progress-header {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.learning-progress-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* 时间范围选择器 */
.time-range-selector {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.range-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.range-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.range-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.range-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 总体统计 */
.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.progress-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.progress-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.progress-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.progress-stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 学习活动图表 */
.learning-activities-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 活动日历 */
.activity-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.activity-day {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.activity-day:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.activity-day.active {
    border-color: #28a745;
    background: #f8fff9;
}

.day-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.day-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.day-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6c757d;
}

.day-stat-value {
    font-weight: 600;
    color: #495057;
}

/* 详细活动列表 */
.activity-list {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th,
.activity-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.activity-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.activity-table tr:hover {
    background: #f8f9fa;
}

/* 准确率指示器 */
.accuracy-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accuracy-bar {
    width: 60px;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.accuracy-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.accuracy-value {
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 40px;
}

/* 趋势指示器 */
.trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: #f8f9fa;
}

.trend-up {
    color: #28a745;
    background: #f8fff9;
}

.trend-down {
    color: #dc3545;
    background: #fff5f5;
}

.trend-stable {
    color: #6c757d;
    background: #f8f9fa;
}

/* 学习洞察 */
.learning-insights {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.insight-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.insight-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.insight-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.insight-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 颜色定义 */
.bg-success { background: linear-gradient(135deg, #28a745, #20c997); }
.bg-primary { background: linear-gradient(135deg, #007bff, #6f42c1); }
.bg-info { background: linear-gradient(135deg, #17a2b8, #6f42c1); }
.bg-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.bg-purple { background: linear-gradient(135deg, #6f42c1, #e83e8c); }

.text-success { color: #28a745; }
.text-primary { color: #007bff; }
.text-info { color: #17a2b8; }
.text-warning { color: #ffc107; }

.border-success { border-left-color: #28a745; }
.border-primary { border-left-color: #007bff; }
.border-info { border-left-color: #17a2b8; }
.border-warning { border-left-color: #ffc107; }

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .activity-calendar {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }

    .activity-table {
        font-size: 0.75rem;
    }

    .range-buttons {
        justify-content: center;
    }
}

/* 图表容器 */
.chart-container {
    height: 300px;
    margin: 1rem 0;
    position: relative;
}

/* 加载状态 */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}